package com.dale.shiro;

import org.apache.shiro.cache.Cache;
import org.apache.shiro.cache.CacheException;
import org.apache.shiro.cache.CacheManager;
import org.crazycake.shiro.RedisCache;
import org.crazycake.shiro.RedisClusterManager;
import org.crazycake.shiro.RedisManager;

/**
 * @author Gyt
 * @create 2021-06-22 - 17:23
 */
public class RedisCacheManager implements CacheManager {
    @Override
    public <K, V> Cache<K, V> getCache(String s) throws CacheException {
        return null;
    }

    //参数1:认证或者是授权缓存的统一名称
//    @Override
//    public <K, V> Cache<K, V> getCache(String cacheName) throws CacheException {
//        System.out.println(cacheName);
//        return new RedisCache<K,V>(cacheName);
//    }
}